<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<title>漂亮的响应式Bootstrap后台管理系统模板MatAdmin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/bootstrap.min.css" />
<!-- <link rel="stylesheet" href="/phpwmscm/PUBLIC/css/bootstrap-responsive.min.css" /> -->
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/fullcalendar.css" />
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/matrix-style.css" />
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/matrix-media.css" />
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/index.css" />
<link href="/phpwmscm/PUBLIC/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="/phpwmscm/PUBLIC/css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<script src="/phpwmscm/PUBLIC/js/jquery-1.8.0.min.js"></script> 
 <style>
		td{
			white-space:nowrap;
			overflow:hidden;
			word-break:keep-all;
		}
	</style>
</head>
<body>
        
<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">MatAdmin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text"><?php echo ($user); ?></span><b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#"><i class="icon-user"></i> 我的资料</a></li>
        <li class="divider"></li>
        <li><a href="#"><i class="icon-check"></i> 我的任务</a></li>
        <li class="divider"></li>
        <li><a href="<?php echo U('Login/logout');?>"><i class="icon-key"></i> 退出</a></li>
      </ul>
    </li>
    <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">消息</span> <span class="label label-important">5</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> 新消息</a></li>
        <li class="divider"></li>
        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> 收件箱</a></li>
        <li class="divider"></li>
        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> 发件箱</a></li>
        <li class="divider"></li>
        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> 发送</a></li>
      </ul>
    </li>
    <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
    <li class=""><a title="" href="<?php echo U('Login/logout');?>"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
  </ul>
</div>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<div id="search">
  <input type="text" placeholder="输入搜索内容..."/>
  <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch-->
<div id="sidebar"><a href="#" class="visible-phone"><i class="icon-home"></i> 控制台</a>
  <ul>
    <!-- <li><a href="<?php echo U('Index/index');?>"><i class="icon-home"></i> <span>首页</span></a> </li>
    <li> <a href="<?php echo U('Log/index');?>"><i class="icon-signal"></i> <span>库存单品编码</span></a> </li>
    <li> <a href="<?php echo U('Lsdl/index');?>"><i class="icon-signal"></i> <span>客户门店添加</span></a> </li>
    <li> <a href="<?php echo U('Ls/index');?>"><i class="icon-signal"></i> <span>门店报单编辑</span></a> </li>
    <li class="active"> <a href="<?php echo U('Lsrb/index');?>"><i class="icon-signal"></i> <span>已报订单确认</span></a> </li>
    <li> <a href="<?php echo U('Nslsrb/index');?>"><i class="icon-signal"></i> <span>日报新增删除</span></a> </li>
    <li > <a href="<?php echo U('Sc/index');?>"><i class="icon-signal"></i> <span>商超批量派车</span></a> </li>
    <li> <a href="<?php echo U('Scdl/index');?>"><i class="icon-signal"></i> <span>商超独立派车</span></a> </li>
    <li> <a href="<?php echo U('Wpcmd/index');?>"><i class="icon-signal"></i> <span>未派订单处理</span></a> </li> -->
  </ul>
</div>

<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
  <div id="content-header">
    <div id="f"> <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 首页</a></div>
  </div>
<!-- End-breadcrumbs -->

<!-- Action boxes -->
  
                       <form action="<?php echo U('Lsrb/index');?>" enctype="multipart/form-data" method="post">						
							订单日期开始<input type=date id="dbb1" name=time_1 step=1 value=$_POST[time_1]> 
							订单日期结束<input type=date id="dbb2" name=time_2 step=1 value=$_POST[time_2]> 
							<input type=submit class="span1" name=submit value=查询> 
							<input type=submit class="span1" name=submit value=导出数据> 
							<!-- <input type=submit class="span1" name=submit value=提交>	 -->								
							<div class="control-group">
							
							<div class="controls">
					        <input type="text"  list="listItem" placeholder="请选择门店" name=project_name_1 value="全部">
					        <datalist id="listItem">
					             <option>全部</option>						     
					        </datalist>

					<!-- 门店<select id="khselect" name=project_name_1>	
									    <option>全部</option>									   							
									</select> -->
									配送类型<select name=project_name_2>	
									    <option>全部</option>									
										<option>市内</option>
										<option>零担</option>
										<option>自提</option>
								    </select>	
								    </select>
									是否已推送<select name=project_name_3>	
									    <option>未推送</option>									
										<option>已推送</option>
										<option>全部</option>										
								    </select>								           												         
								</div>
						    </div>					    					
						</form>
					    <button id="fbt9">全选</button>
                        <button id="fbt3">删除订单行</button><button id="fbt1">正式提交确认</button> </select>								          
						<button id="fbt8">统计预览</button>
<div style="overflow:auto;position: relative;">                       
<div id="wwf">
                     		<table id=tablea class="table table-bordered table-striped">
							<!-- <tr>
								<?php if(is_array($arr1)): $i = 0; $__LIST__ = $arr1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><th align=center ><nobr><?php echo ($vo); ?></nobr></th><?php endforeach; endif; else: echo "" ;endif; ?>
							</tr> -->
							<thead>
							<tr>
							    <th><nobr>选中</nobr></th>
							    <th><nobr>是否已推送</nobr></th>
							    <th><nobr>订单编码</nobr></th>
							    <th style="color:#f0f"><nobr>订单日期</nobr></th>
							    <th style="color:#f0f"><nobr>配送日期</nobr></th>
							    <th><nobr>客户</nobr></th>
							    <th ><nobr>门店</nobr></th>
							    <th style="color:#f0f"><nobr>收货人</nobr></th>
							    <th style="color:#f0f"><nobr>收货人电话</nobr></th>
							    <th style="color:#f0f"><nobr>三方订单号</nobr></th>
							    <th><nobr>地址</nobr></th>
							    <th style="color:#f0f"><nobr>订单备注</nobr></th>
							    <th style="color:#f0f"><nobr>配送类型</nobr></th>
							    <th><nobr>序号</nobr></th>
							    <th><nobr>商品编码</nobr></th>
							    <th><nobr>品名</nobr></th>
							    <th><nobr>商品条码</nobr></th>
							    <th><nobr>单品规格</nobr></th>
							    <th><nobr>箱规</nobr></th>
							    <th><nobr>货物类型</nobr></th>
							    <th style="color:#f0f"><nobr>件数</nobr></th>
							    <th style="color:#f0f"><nobr>备注</nobr></th>
							  							   					 
							</tr>
							</thead>
							<tbody>
							<?php if(is_array($arr1)): $i = 0; $__LIST__ = $arr1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
							    <th><input type=checkbox name=selected_book_id[] class='tableinputXz' value=<?php echo ($vo["0"]); ?>></th>	
							    <th><nobr><?php echo ($vo["21"]); ?></nobr></th>					
								<th><nobr><?php echo ($vo["1"]); ?></nobr></th>								
								<td><input type=date  step=1 value=<?php echo ($vo["2"]); ?>></td>
								<td><input type=date  step=1 value=<?php echo ($vo["3"]); ?>></td>								
								<th><nobr><?php echo ($vo["4"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["5"]); ?></nobr></th>
								<td><nobr><?php echo ($vo["6"]); ?></nobr></td>
								<td><nobr><?php echo ($vo["7"]); ?></nobr></td>
								<td><nobr><?php echo ($vo["8"]); ?></nobr></td>
								<th><nobr><?php echo ($vo["9"]); ?></nobr></th>
								<td><nobr><?php echo ($vo["10"]); ?></nobr></td>
								<th><select>
								<option value =<?php echo ($vo["22"]); ?>><?php echo ($vo["22"]); ?></option>
								<option value =<?php echo ($vo["23"]); ?>><?php echo ($vo["23"]); ?></option>
								<option value =<?php echo ($vo["24"]); ?>><?php echo ($vo["24"]); ?></option>
								    </select></th>
								<th><nobr><?php echo ($vo["12"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["13"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["14"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["15"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["16"]); ?></nobr></th>
								<th><nobr><?php echo ($vo["17"]); ?></nobr></th>												
								<th><nobr><?php echo ($vo["18"]); ?></nobr></th>
								<td><nobr><?php echo ($vo["20"]); ?></nobr></td>		
								<td><nobr><?php echo ($vo["19"]); ?></nobr></td>	
																																				
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>	
							</tbody>							
						</table>
  </div>
  </div>
<!-- End-Action boxes -->    

</div>

<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
  <div id="footer" class="span12">Copyright &copy; 2018.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a> </div>
</div>


<script src="/phpwmscm/PUBLIC/js/excanvas.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.ui.custom.js"></script> 
<script src="/phpwmscm/PUBLIC/js/bootstrap.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.flot.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.flot.resize.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.peity.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/fullcalendar.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.dashboard.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.gritter.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.interface.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.chat.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.validate.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.form_validation.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.wizard.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.uniform.js"></script> 
<script src="/phpwmscm/PUBLIC/js/select2.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.popover.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.dataTables.min.js"></script> 
<script src="/phpwmscm/PUBLIC/js/matrix.tables.js"></script> 
<script src="/phpwmscm/PUBLIC/js/mindmup-editabletable-rb.js"></script> 
<script src="/phpwmscm/PUBLIC/js/numeric-input-example.js"></script> 
<script src="/phpwmscm/PUBLIC/js/jquery.mousewheel.js"></script>
<!--end-Footer-part-->

<script type="text/javascript">
//ajax 测试
$.post("/phpwmscm/admin.php/Admin/Lsrb/ceshi/",
		    {
		    
		    },
		    function(data,status){	
		    	switch (data) 
		    	{		    	
		        case "1":
		    	{
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Index/index');?>'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Log/index');?>'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Lsdl/index');?>'><i class='icon-signal'></i> <span>客户门店添加</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Ls/index');?>'><i class='icon-signal'></i> <span>门店报单编辑</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li class='active'> <a href='<?php echo U('Lsrb/index');?>'><i class='icon-signal'></i> <span>已报订单确认</span></a> </li>");		        	  	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Dddy/index');?>'><i class='icon-signal'></i> <span>订单打印处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Rkcl/index');?>'><i class='icon-signal'></i> <span>单品入库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Ddgz/index');?>'><i class='icon-signal'></i> <span>订单出库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Kcgl/index');?>'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>");
		        	break;
		    	}
		    	
		        case "2":
		    	{
		        	$('#sidebar').children("ul").append("<li><a href='<?php echo U('Index/index');?>'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Log/index');?>'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Lsdl/index');?>'><i class='icon-signal'></i> <span>客户门店添加</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Ls/index');?>'><i class='icon-signal'></i> <span>门店报单编辑</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li class='active'> <a href='<?php echo U('Lsrb/index');?>'><i class='icon-signal'></i> <span>已报订单确认</span></a> </li>");	  
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Kcgl/index');?>'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>"); 
		        break;
		    	}
		    	
		        case "3":
		    	{ 
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Index/index');?>'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Log/index');?>'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Dddy/index');?>'><i class='icon-signal'></i> <span>订单打印处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Rkcl/index');?>'><i class='icon-signal'></i> <span>单品入库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Ddgz/index');?>'><i class='icon-signal'></i> <span>订单出库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='<?php echo U('Kcgl/index');?>'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>");
		        break;
		    	}
		    	
		        case "4":
		        {    	    	
		        	
		        break;
		        } 
		        
		        default: 
		        {
		    	break;
		        }
		        
		    	} 
		    	//$("#sidebar").find("li")[0].remove();    
		    });
		   
/////////////////////////////////////////////////////////////////////////////////////////////////		    
//取得日期
function getDate(d1) {

	/* var	d2=Number(d1);//转换为数值。
	var time = new Date();
	var day = ("0" + (time.getDate()+d2)).slice(-2);
	
	var month = ("0" + (time.getMonth() + 1)).slice(-2);
	var today = time.getFullYear() + "-" + (month) + "-" + (day);
	
	return today; */
	var d2 = Number(d1);//转换为数值。
	var time = new Date();
	var n = time.getTime();
	//有多少天的间隔就加上相对应的秒数。
	//console.log(n); 
	n = n + d2 * 24 * 60 * 60 * 1000;
	//console.log(n); 

	var dd = new Date(+n+8*3600*1000);
	var today = dd.toISOString();
	return today.slice(0, 10);
	//console.log(n1.slice(0,10)); 
}
$('#dbb1').val(getDate(0));
$('#dbb2').val(getDate(0));
/////////////////////////////////////////////////////////////////////////////////////////////////
//动态设置下拉列表，跟数据库客户表同步。
$.post("/phpwmscm/admin.php/Admin/Lsrb/tjajaxsicp/",
		 {
		 		    
		 },
		 function(data,status){	
			 
			    var temparr1=data;//取回	    	
		    	varDb_arr1 = temparr1.split(',');//转换为数组
		    	
		    	//console.log(varDb_arr1);
		    			 		
		 		for (var ig = 0; ig < varDb_arr1.length; ig=ig+1) 
		 		{  		
		 			
		 			$('#listItem').append('<option value="' + varDb_arr1[ig] + '">'+ varDb_arr1[ig] +'</option>');
		 		} 
		 		
		});

$('#tablea').editableTableWidget();

$('#fbt1').click(function(){	
	var r=confirm("是否提交!");
	if (r==true)
	{   
	 var  temp1Arr="";//缓存td 
	 var  temp2Arr="";//缓存input  
	 var  temp3Arr="";//缓存表体的 th
	 var  temp4Arr="";//缓存表体的 select
	 var biaojikg=0;//检查工作区文件是否有 已推送订单。
	   $('#tablea').find("td").each(function(){
		   var temp=$(this).text();
		   temp1Arr=temp1Arr+temp+",";				  
		   });//缓存td
		   
       $('#tablea').find("input").each(function(){
    	   var temp=$(this).val();
		   temp2Arr=temp2Arr+temp+",";
    	   }); //缓存input 抽取表格中input-date中的数据  使用input td 双循环，找出所有值，再进行合并。尽量加入按项目填写不要一次都导出来填写，万一网页崩溃不能保存。 */
    	   
       $('#tablea').children('tbody').find("th").each(function(){
    	if($(this).text()=="已推送"){
    		biaojikg=1;
    	}
    
    	   if($(this).index()==1){
       	       var temp=$(this).text();
   		       temp3Arr=temp3Arr+temp+",";
    	   }
       	});//缓存th  
       	
       	
       $('#tablea').find("select").each(function(){    	  
		       var temp=$(this).val();			    	   
			   temp4Arr=temp4Arr+temp+",";
		}); //缓存select下拉列表值，
		       
    	var temp1=temp1Arr.slice(0,temp1Arr.length-1);//去掉最后一个 逗号 ，
    	var temp2=temp2Arr.slice(0,temp2Arr.length-1);//去掉最后一个 逗号 ，
    	var temp3=temp3Arr.slice(0,temp3Arr.length-1);//去掉最后一个 逗号 ，
    	var temp4=temp4Arr.slice(0,temp4Arr.length-1);//去掉最后一个 逗号 ，
    	if(biaojikg!=1){
    		
    	
    	
    	$.post("/phpwmscm/admin.php/Admin/Lsrb/ajaxqrdd/",
    		    { 
    		      arr1:temp1,
    		      arr2:temp2,
    		      arr3:temp3,
    		      arr4:temp4 
    		    },
    		    function(data,status){
    		    	
    		    	//console.log(data);//配合 var_dump 可以实现对ajax 处理过程的监控。    		    	
    		    	//$('#wwf').find("div:last").after(data);//找到最后一个div元素在它的后面插入新的div
    		    });	
    	 $('#tablea').children('tbody').find("tr").each(function(){	      	
			   $(this).remove();//提交后清空工作区
	      	  });  
    	    alert("已提交!");
    	}else{
    		alert("工作区中有 已推送 订单!");
    		biaojikg=0;
    	}
		}
 		else
 		{			
 		    alert("未提交!");
 		}	  
 });
 //删除
 $('#fbt3').click(function(){
	    var r=confirm("是否删除!");
		if (r==true)
		{   
	 
	 var  temp2Arr="";//缓存check 
	
	 $('#tablea').find("input:checkbox:checked").each(function(){
		 
  	       var temp=$(this).val();
		  
		   
		   $('#tablea').children('tbody').find("tr").each(function(){
			   
	      	  if(temp==$(this).find("input:checkbox:checked").val())
	      	  {
	      	  if($(this).find("th").eq(1).text()=="未推送"){
	      		 temp2Arr=temp2Arr+temp+",";//生成1,2,3这样的id字符串
	      		 $(this).remove();//先找到table的选中复选框值，再用这个值与table表体中每一行tr中的复选框值比对，两个值相同就删除当前行。
	      		 alert("已删除!");
	      	  }else{
	      		  alert("订单已经推送，不可删除");
	      		  return;
	      	  }			  
	      	  }
	      	  });//从表格体中查找tr行，并找到每行中check-box的值。  
		   
  	   });
	 
	  var temp2=temp2Arr.slice(0,temp2Arr.length-1);//去掉最后一个 逗号 ，	 
	  
	  
      
	  $.post("/phpwmscm/admin.php/Admin/Lsrb/tjajaxsc/",
 		    { 		      
 		      arr2:temp2, 		     
 		    },
 		    function(data,status){ 		    	
 		    	//console.log(data); 		    	 		    	
 		    });	 	 	  
	        alert("已执行!");
		}
 		else
 		{			
 		    alert("未执行!");
 		}	  
	 
 });
 
 
 $('#fbt8').click(function(){
	 var temp2Arr="";
	 $('#tablea').children('tbody').find("th").each(function(){
		   		
	     	   var temp=$(this).text();		     	  
	   		   temp2Arr=temp2Arr+temp+",";//生成1,2,3这样的id字符串		   		 
	 });
	 var temp3Arr="";
	 $('#tablea').children('tbody').find("td").each(function(){
		   		
	     	   var temp=$(this).text();		     	  
	   		   temp3Arr=temp3Arr+temp+",";//生成1,2,3这样的id字符串		   		 
	 });
	 var temp4Arr="";
	 $('#tablea').children('tbody').find("select").each(function(){
		   		
	     	   var temp=$(this).val();		     	  
	   		   temp4Arr=temp4Arr+temp+",";//生成1,2,3这样的id字符串		   		 
	 });
	 var temp2 = temp2Arr.slice(0, temp2Arr.length - 1);
	 var temp3 = temp3Arr.slice(0, temp3Arr.length - 1);
	 var temp4 = temp4Arr.slice(0, temp4Arr.length - 1);
		
     //console.log(temp2);
     //console.log(temp3);
   $.post("<?php echo U('Ddtj/tjajaxsicp');?>",
	 		    { 		      
	 		      arr2:temp2, 
	 		      arr3:temp3, 
	 		      arr4:temp4, 
	 		    },
	 		    function(data,status){ 		    	
	 		    	console.log(data);//配合 var_dump 可以实现对ajax 处理过程的监控。    		    	 		    	
	 		    });	  	
   window.open("<?php echo U('Ddtj/index');?>");	 	  
	 
 });
$('#fbt9').click(function(){
	var r = confirm("是否全选!");
	if (r == true) {

		var temp = $(".tableinputXz").prop("checked", true);

		alert("已全选!");
	} else {

		var temp = $(".tableinputXz").prop("checked", false);

		alert("未全选!");
	}
});
//console.log($.fn.editableTableWidget.defaultOptions);//插件变量调用 要使用全称。 ,,,,,,,,
</script>
</body>

</html>